package com.oracle.controller;

import com.oracle.service.BookService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/book")
public class BookController {
    @Autowired
    private BookService bookService;
    @GetMapping("/getBookName")
    public String getBookName(Integer id){
       return bookService.getBookName(id);
    }
    @GetMapping("/hhhh")
    public String getBooksName(){
       return bookService.getBooksName();
    }
}
